<template>
	<view>
		<view class="content">
			<view class="title">
				人脸管理
			</view>
			<view class="center">
				<u-image src="https://oss.hntenghu.com/wuye/001.png" width="300rpx" height="300rpx" mode="widthFix"></u-image>
				<view class="mt-20 mb-20 fs-26" style="color:#999">
					上传您的正脸照片，请保持照片清晰明亮
				</view>
				<u-upload ref="uUpload" custom-btn>
					<view slot="addBtn" class="slot-btn">
						<view class="addBtn-style">点击上传人脸</view>
					</view>
				</u-upload>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				action: "https://oss.hntenghu.com/wuye/001.png",
				fileList: []
			}
		},
		methods: {
			submit() {
				console.log(2)
				this.$refs.uUpload.browse();
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		margin: 30rpx 20rpx;
		padding: 20rpx;
		background-color: $-color-white;
		border-radius: 10rpx;

		.title {
			font-weight: 700;
			font-size: 38rpx;
		}

		.center {
			display: flex;
			justify-content: center;
			flex-direction: column;
			align-items: center;
		}

		/deep/.slot-btn {
			width: 100%;

			.addBtn-style {
				background-color: #3990f1;
				border-radius: 50rpx;
				width: 500rpx !important;
				padding: 20rpx 0;
				text-align: center;
				color: #fff;
			}
		}

	}
</style>